package com.example.ssm.Dao;

import com.example.ssm.Bean.Account;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.nio.channels.SelectableChannel;
import java.util.List;

/**
 * @create 2022-03-2022/3/6-9:32
 */
public interface AccountMapper {

    @Insert("insert into account(name,money) values (#{name},#{money})")
    void saveAccount(Account account);

    @Select("select * from account")
    List<Account> findAll();
}
